package threaddemo;

public class Demo5 {
    public static void main(String[] args) {
        MyTicket mt = new MyTicket();
        Thread t1 =new Thread(mt);
        t1.setName("窗口一");
        t1.start();

        Thread t2 =new Thread(mt);
        t2.setName("窗口二");
        t2.start();

    }
}
